<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Nintendorks Chatter</title>
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<style type="text/css" media="screen">@import "/iui/iui.css";</style>
<script type="text/javascript" src="/images/editor.js"></script>
</head>

<body onload="scrollTo(0,1)">
    <div class="toolbar">
        {% ifequal mode "edit" %}
        <h1 id="pageTitle">Edit Post</h1>
        {% endifequal %}
        {% ifequal mode "quote" %}
        <h1 id="pageTitle">Reply</h1>
        {% endifequal %}
        {% ifequal mode "reply" %}
        <h1 id="pageTitle">Reply</h1>
        {% endifequal %}
        {% ifequal mode "post" %}
        <h1 id="pageTitle">New Thread</h1>
        {% endifequal %}
        
        <a id="backButton" class="button" href="javascript:history.back()">Cancel</a>
        <!-- a class="button" href="/clear">Logout</a -->
    </div>
    
    
    <ul id="post" selected="true">   
      <li class="plain">
      <form name="postForm" class="reply" method="post" action="/post">
        <fieldset>
            <h1>{{threadTitle}}</h1>          
            <input type="text" class="replyTextInput" value="{{subjectContents}}" maxlength="64" name="subject"/>
            <div align="center">
            <input type="button" onclick="bbstyle(0)" style="font-weight: bold; width: 30px;" value="B" name="addbbcode0"/>
            <input type="button" onclick="bbstyle(2)" style="font-style: italic; width: 30px;" value="i" name="addbbcode2"/>
            <input type="button" name="addbbcode14" value="img" style="width: 40px" onclick="bbstyle(14)"/>
			<input type="button" name="addbbcode16" value="url" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)"/>
			<input type="button" name="addbbcode24" value="spoiler" onclick="bbstyle(24)"/>
			<br/>
			<a href="#" onclick="insert_text(':D', true); return false;" ><img src="./images/smilies/icon_biggrin.gif" width="20" height="20" alt=":D" title="Awesome" hspace="2" vspace="2" /></a>
			<a href="#" onclick="insert_text(':)', true); return false;" style="line-height: 20px;"><img src="./images/smilies/icon_smile.gif" width="20" height="20" alt=":)" title="Good" hspace="2" vspace="2" /></a>
			<a href="#" onclick="insert_text(':(', true); return false;" style="line-height: 20px;"><img src="./images/smilies/icon_sad.gif" width="21" height="20" alt=":(" title="Bad" hspace="2" vspace="2" /></a>
			<a href="#" onclick="insert_text(':?', true); return false;" style="line-height: 20px;"><img src="./images/smilies/icon_confused.gif" width="20" height="20" alt=":?" title="Okay" hspace="2" vspace="2" /></a>
			<a href="#" onclick="insert_text(':mad:', true); return false;" style="line-height: 20px;"><img src="./images/smilies/icon_mad.gif" width="19" height="20" alt=":mad:" title="Awful" hspace="2" vspace="2" /></a>
			<a href="#" onclick="insert_text(';)', true); return false;" style="line-height: 20px;"><img src="./images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink" hspace="2" vspace="2" /></a>
			<a href="#" onclick="insert_text(':?:', true); return false;" style="line-height: 20px;"><img src="./images/smilies/icon_question.gif" width="16" height="16" alt=":?:" title="Question" hspace="2" vspace="2" /></a>
			<a href="#" onclick="insert_text(':lick:', true); return false;" style="line-height: 20px;"><img src="./images/smilies/icon_arrow.gif" width="15" height="15" alt=":lick:" title="Lick" hspace="2" vspace="2" /></a>
			<a href="#" onclick="insert_text(':kool:', true); return false;" style="line-height: 20px;"><img src="./images/smilies/icon_mrgreen.gif" width="22" height="20" alt=":kool:" title="OH YEAH!" hspace="2" vspace="2" /></a>													
            </div>
            <textarea class="replyTextArea" name="message" rows="12">{{postContents}}</textarea>
            <input type="hidden" name="mode" value="{{mode}}" />
            <input type="hidden" name="postID" value="{{postID}}" />
            <input type="hidden" name="forumID" value="{{forumID}}" />
            <input type="hidden" name="threadID" value="{{threadID}}" />
            <input type="hidden" name="numReplies" value="{{numReplies}}" />
            <input type="hidden" name="start" value="{{start}}" />
            <input type="hidden" name="topic_cur_post_id" value="{{topic_cur_post_id}}" />
            <input type="hidden" name="lastclick" value="{{lastclick}}" />
            <input type="hidden" name="creation_time" value="{{creation_time}}" />
            <input type="hidden" name="form_token" value="{{form_token}}" />
            {% ifequal mode "quote" %}	
            <div class="replyInfo">
            Note: Board only allows 3 embedded quotes
            </div>
            {% endifequal %}            
            <a type="submit" id="replyButton" class="button2 grayButton" href="javascript: document.postForm.submit()">Post</a>
        </fieldset>
      </form>
      </li>      
    </ul>
    
    {% include "googleanalytics.html" %}    
</body>
</html>
